<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0, viewport-fit=cover" />
	<title>str</title>
</head>
<body>
<script>
let a;

a = {
	num: 1,
	toString() {
		return this.num *= 2
	}
}


// let a;
// a = [2,4,8]
// a.toString = a.shift
//
// if(a==2 && a==4 && a==8){
// 	console.log('打印输出');
// }

if (a == 2 && a == 4 && a == 8) {

	console.log(`打印输出`)

}

</script>
</body>
</html>
